import Vue from 'vue'
import Router from 'vue-router'
import classList from '@/view/Course/classList'
import classDetail from '@/view/Course/classDetail'
import CampDetail from '@/view/Course/Camp_detail'
import StoreList from '@/view/Store/_list'
import StoreDetail from '@/view/Store/_detail'
import Recharge from '@/view/Recharge'
import MyBooking from '@/view/MyBooking/MyBooking'
import Card from '@/view/Card/card'
import Pay from '@/view/pay'
import Code from '@/view/code'
import GetLocation from '@/view/GetLocation'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/getLocation',
      name: 'GetLocation',
      component: GetLocation
    },
    {
      path: '/',
      name: 'StoreList',
      component: StoreList
    },
    {
      path: '/classList',
      name: 'classList',
      component: classList
    },
    {
      path: '/classDetail',
      name: 'classDetail',
      component: classDetail
    },
    {
      path: '/store/detail',
      name: 'StoreDetail',
      component: StoreDetail
    },
    {
      path: '/recharge',
      name: 'Recharge',
      component: Recharge
    },
    {
      path: '/mybooking',
      name: 'MyBooking',
      component: MyBooking
    },
    {
      path: '/card',
      name: 'Card',
      component: Card
    },
    {
      path: '/pay',
      name: 'Pay',
      component: Pay
    },
    {
      path: '/course/camp/detail',
      name: 'Camp_detail',
      component: CampDetail
    },
    {
      path: '/code',
      name: 'Code',
      component: Code
    }
  ]
})
